package static_block;

public class shilidaimkakui {
    int age;
    {
        System.out.println("实例代码块先执行并且可以给实例变量进行赋值,");
        age=18;
    }

    public static void main(String[] args) {
        shilidaimkakui sc1=new shilidaimkakui();
        shilidaimkakui sc2=new shilidaimkakui();
        System.out.println(sc1.age);
        System.out.println(sc2.age);
    }
}
